package com.waitingresult;

import lombok.Getter;
import lombok.RequiredArgsConstructor;

/**
 * @Author: WangShuai
 * @CreateTime: 2022-11-29  23:08
 * @Description:  签到类型
 * @Version: 1.0
 */
@Getter
@RequiredArgsConstructor
public enum SignTypeEnum {

    ALL(0, "全部"),
    ALREADY_SIGN(1, "已签到"),
    DIDNOT_SIGN(2, "未签到");

    /**
     * 类型
     */
    private final Integer type;

    /**
     * 描述
     */
    private final String desc;


    public static SignTypeEnum getSignType(Integer type) {
        for (SignTypeEnum em : SignTypeEnum.values()) {
            if (em.type.equals(type)) {
                return em;
            }
        }
        return null;
    }

}
